<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>磨砂玻璃</title>
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <section>
    <h2>Frosted Glass</h2>
    <div class="glass"></div>
  </section>
</body>
<script>
  document.addEventListener('mousemove', (e) => {
    const glass = document.querySelector('.glass')
    glass.style.left = e.offsetX + 'px'
    glass.style.top = e.offsetY + 'px'
  })
</script>

</html>